package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Publish;
import com.tanhua.vo.PageResult;
import org.springframework.data.domain.PageRequest;

public interface PublishApi {
    String saveMovements(Publish publish);

//    查询当前登录人好友的动态
    PageResult queryFriendMovements(Integer page, Integer pagesize, Long userId);

    PageResult queryRecommendMovements(Integer page, Integer pagesize, Long userId);

    PageResult queryMySelfMovements(Integer page, Integer pagesize, Long userId);

    Publish findById(String publishId);

    PageResult queryPublishByUserId(Integer page, Integer pagesize, Long userId, Integer state);

    void updatePublishState(String publishId, int state);

    Publish findByPid(long pid);
}
